home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / pluginy Firefox / 59338 / 59338.xpi / chrome / global / textbox.css < prev    next >
Cascading Style Sheet File  |  2010-01-19  |  6KB  |  193 lines

  1. /* ***** BEGIN LICENSE BLOCK *****
  2.  * Version: MPL 1.1/GPL 2.0/LGPL 2.1
  3.  *
  4.  * The contents of this file are subject to the Mozilla Public License Version
  5.  * 1.1 (the "License"); you may not use this file except in compliance with
  6.  * the License. You may obtain a copy of the License at
  7.  * http://www.mozilla.org/MPL/
  8.  *
  9.  * Software distributed under the License is distributed on an "AS IS" basis,
  10.  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
  11.  * for the specific language governing rights and limitations under the
  12.  * License.
  13.  *
  14.  * The Original Code is Mozilla Communicator client code, released
  15.  * March 31, 1998.
  16.  *
  17.  * The Initial Developer of the Original Code is
  18.  * Netscape Communications Corporation.
  19.  * Portions created by the Initial Developer are Copyright (C) 1998-2001
  20.  * the Initial Developer. All Rights Reserved.
  21.  *
  22.  * Contributor(s):
  23.  *   Joe Hewitt (hewitt@netscape.com)
  24.  *
  25.  * Alternatively, the contents of this file may be used under the terms of
  26.  * either the GNU General Public License Version 2 or later (the "GPL"), or
  27.  * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
  28.  * in which case the provisions of the GPL or the LGPL are applicable instead
  29.  * of those above. If you wish to allow use of your version of this file only
  30.  * under the terms of either the GPL or the LGPL, and not to allow others to
  31.  * use your version of this file under the terms of the MPL, indicate your
  32.  * decision by deleting the provisions above and replace them with the notice
  33.  * and other provisions required by the GPL or the LGPL. If you do not delete
  34.  * the provisions above, a recipient may use your version of this file under
  35.  * the terms of any one of the MPL, the GPL or the LGPL.
  36.  *
  37.  * ***** END LICENSE BLOCK ***** */
  38.  
  39. /* ===== textbox.css ==================================================
  40.   == Styles used by the XUL textbox element.
  41.   ======================================================================= */
  42.  
  43. @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
  44. @namespace html url("http://www.w3.org/1999/xhtml");
  45.  
  46. /* ::::: textbox ::::: */
  47.  
  48. textbox {
  49. margin:5px;
  50. min-height:22px;
  51. padding:0;
  52. border: 3px solid !important;
  53. -moz-border-radius: 4px;
  54. background-color:#ffffff;
  55. -moz-border-top-colors:#a8a8a8 #dadada #fcfcfc !important;
  56. -moz-border-bottom-colors:#d9d8d8 transparent transparent !important;
  57. -moz-border-left-colors:#d3d3d3 #fafafa transparent !important;
  58. -moz-border-right-colors:#d4d4d4 #fafafa transparent !important;
  59. }
  60.  
  61. textbox:hover {
  62. -moz-border-top-colors:#79b7fc #aac9ec #e8f2fd !important;
  63. -moz-border-bottom-colors:#7bb8fd #bddcff #eaf4ff !important;
  64. -moz-border-left-colors:#7bb9fd #bad9fc #eaf4ff !important;
  65. -moz-border-right-colors:#7cb9fe #bad9fc #eaf4ff !important;
  66. }
  67.  
  68. textbox[focused="true"] {
  69. -moz-border-top-colors:#3076c6 #85a8d1 #dde7f5 !important;
  70. -moz-border-bottom-colors:#3278c7 #98bbe4 #dfe9f7 !important;
  71. -moz-border-left-colors:#3278c7 #95b8e1 #dfe9f7 !important;
  72. -moz-border-right-colors:#3379c8 #95b8e1 #dfe9f7 !important;
  73. }
  74.  
  75. textbox[isempty="true"],
  76. textbox[empty="true"] {
  77. color: #E3E2E2 !important;
  78. font-style: italic; 
  79. border: 3px solid !important;
  80. -moz-border-radius: 4px;
  81. background-color:#ffffff;
  82. -moz-border-top-colors:#a8a8a8 #dadada #fcfcfc !important;
  83. -moz-border-bottom-colors:#d9d8d8 transparent transparent !important;
  84. -moz-border-left-colors:#d3d3d3 #fafafa transparent !important;
  85. -moz-border-right-colors:#d4d4d4 #fafafa transparent !important;
  86. min-height:22px;
  87. }
  88.  
  89. textbox[isempty="true"]:hover,
  90. textbox[empty="true"]:hover {
  91. -moz-border-top-colors:#79b7fc #aac9ec #e8f2fd !important;
  92. -moz-border-bottom-colors:#7bb8fd #bddcff #eaf4ff !important;
  93. -moz-border-left-colors:#7bb9fd #bad9fc #eaf4ff !important;
  94. -moz-border-right-colors:#7cb9fe #bad9fc #eaf4ff !important;
  95. }
  96.  
  97.  
  98.  
  99. html|*.textbox-input, 
  100. html|*.textbox-textarea {
  101. margin: 0px !important;
  102. border: none !important;
  103. padding: 0px !important;
  104. background-color:transparent;
  105. color: #000000;
  106. font: inherit;
  107. }
  108.  
  109. .textbox-contextmenu {
  110. cursor: default;
  111. border: 3px solid !important;
  112. -moz-border-radius: 4px;
  113. background-color:#ffffff;
  114. -moz-border-top-colors:#a8a8a8 #dadada #fcfcfc !important;
  115. -moz-border-bottom-colors:#d9d8d8 transparent transparent !important;
  116. -moz-border-left-colors:#d3d3d3 #fafafa transparent !important;
  117. -moz-border-right-colors:#d4d4d4 #fafafa transparent !important;
  118. min-height:22px;
  119. }
  120.  
  121. /* ..... readonly state ..... */
  122.  
  123. textbox[readonly="true"] {
  124. background-color:#ffffff;
  125. color: #000;
  126. }
  127.  
  128. /* ..... disabled state ..... */
  129.  
  130. textbox[disabled="true"] {
  131. cursor: default;
  132. background-color:#ffffff;
  133. color: GrayText;
  134. }
  135.  
  136. /* ::::: plain textbox ::::: */
  137.  
  138. textbox.plain {
  139. -moz-appearance: none !important;
  140. background-color: transparent;
  141. padding: 0px !important;
  142. margin: 0px !important;
  143. border: none !important;
  144. }
  145.  
  146. /* ::::: search textbox ::::: */
  147.  
  148. .textbox-search-icon {
  149. list-style-image: url(chrome://global/skin/icons/Search-glass.png);
  150. -moz-image-region: rect(0, 16px, 16px, 0);
  151. padding-right:5px; 
  152. }
  153.  
  154. .textbox-search-icon[chromedir="rtl"] {
  155. list-style-image: url(chrome://global/skin/icons/Search-glass-rtl.png);
  156. padding-right:5px; 
  157. }
  158.  
  159. .textbox-search-icon[searchbutton]:not([disabled]) {
  160. cursor: pointer;
  161. }
  162.  
  163. .textbox-search-clear {
  164. list-style-image: url(chrome://global/skin/icons/Search-close.png);
  165. -moz-image-region: rect(0, 16px, 16px, 0);
  166. padding-right:5px; 
  167. }
  168.  
  169. .textbox-search-clear:not([disabled]) {
  170. cursor: default;
  171. }
  172.  
  173. .textbox-search-clear:not([disabled]):hover ,
  174. .textbox-search-icon[searchbutton]:not([disabled]):hover {
  175. -moz-image-region: rect(0, 32px, 16px, 16px);
  176. }
  177.  
  178. .textbox-search-clear:not([disabled]):hover:active ,
  179. .textbox-search-icon[searchbutton]:not([disabled]):hover:active {
  180. -moz-image-region: rect(0, 48px, 16px, 32px);
  181. }
  182.  
  183. /* ::::: textboxes inside toolbarpaletteitems ::::: */
  184.  
  185. toolbarpaletteitem > toolbaritem > textbox > .textbox-input-box > html|*.textbox-input {
  186. visibility: hidden;
  187. }
  188.  
  189.  
  190. textbox[empty="true"]:-moz-system-metric(windows-default-theme) {
  191. font-style: italic;
  192. }
  193.